package com.company.service;

import com.company.dao.AccountsDao;
import com.company.entity.Accounts;

public class AccountsService {
	private AccountsDao accountsDao;
	private Accounts accounts;

	public Accounts getAccounts() {
		return accounts;
	}

	public void setAccounts(Accounts accounts) {
		this.accounts = accounts;
	}

	public AccountsDao getAccountsDao() {
		return accountsDao;
	}

	public void setAccountsDao(AccountsDao accountsDao) {
		this.accountsDao = accountsDao;
	}
	
	public String query()
	{
		return accountsDao.query();
	}

	public Accounts list() {
		return accountsDao.list();
	}
	public boolean login(String username,String password) {
		return accountsDao.login(username,password);
	}
	public void update(Accounts accounts) {
		accountsDao.update(accounts);
	}
}
